package com.codeman.business.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.codeman.business.user.domain.User;
import com.codeman.business.user.domain.UserDetails;


/**
 * 用户Service接口
 *
 * @author codeman
 * @date 2021-03-24
 */
public interface IUserService extends IService<User> {
    /**
     * 用户注册
     * @param user 用户注册信息类
     * @return jwt载体信息类
     * */
    UserDetails register(User user);

    /**
     * 用户登陆
     * @param user 用户登陆信息类
     * @return jwt载体信息类
     * */
    UserDetails login(User user);
}
